﻿using System;
using System.Collections.Generic;

using System.Text;

namespace Corsat.Library.DataManager
{
    public static class Lookups
    {
        static List<Item> churchs;
        static List<Item> courseNames;

        /// <summary>
        /// Gets all the Churchs in the System.
        /// </summary>
        public static List<Corsat.Library.Item> Churchs
        {
            get
            {
                if (churchs == null)
                    churchs = DataManager.Main.GetAllItemsByCategory(Category.Churchs);

                return churchs;
            }
        }

        /// <summary>
        /// Gets all the Course Names in the System.
        /// </summary>
        public static List<Corsat.Library.Item> CourseNames
        {
            get
            {
                if (courseNames == null)
                    courseNames = DataManager.Main.GetAllItemsByCategory(Category.CourseNames);

                return churchs;
            }
        }



        
    }
}
